package com.aiton.bamin.bamindaijiadrier.constant;

/**
 * Created by zjb on 2016/6/12.
 */
public class Constant {
    //    http://192.168.1.112:8080/designated/app/customer/sendMessage?phone=15871105320&code=3666
    public static final String HOST = "http://120.24.46.15:8080/aiton-designated-driver-app-webapp/designated/app/driver";
//    public static final String HOST = "http://xmaiton.xicp.net:5560/aiton-designated-driver-app-webapp/designated/app/driver";
    public static final int ABLEVERSION = 0;//可用版x本号
    public static final String APP_ID = "";

    public static class Url {
        public static final String UP_GRADE = "http://bmcx.oss-cn-shanghai.aliyuncs.com/bmzc/upgradea_daijiasiji.txt";
        //        public static final String GET_SMS = HOST + "/sendMessage";
        public static final String GET_SMS = "http://120.24.46.15:8080/aiton-designated-driver-app-webapp/designated/app/driver/sendMessage";
        public static final String LOGIN = HOST + "/addDriver";//传入参数：name(名称),phone(电话),deviceId(手机ID)
        public static final String CHECK_LIVE = HOST + "/live/cheklive";
        public static final String LOADLOGINID = HOST + "/loadloginId";
        public static final String ACECPT_ORDER = HOST + "/order/driverGetOrder";
        public static final String DRIVER_GET_ORDER_IS_ING = HOST + "/order/getDriverOrderIsIng";
        public static final String DRIVER_FIND_NOT_FINISH_ORDER = HOST + "/order/driverFindNotFinishOrder";
        public static final String ORDER_START = HOST + "/order/orderStart";
        public static final String ORDER_COMPLETE = HOST + "/order/orderComplete";
        public static final String DRIVER_CHANGE_MILEAGE = HOST + "/order/driverChangeMileage";
        public static final String DRIVER_CONFIRM_ORDER = HOST + "/order/driverConfirmOrder";
        public static final String CHANGE_END = HOST + "/order/orderChange";//更改目的地
        public static final String CUSTOMERIMAGE = HOST + "/image/driverImage";
        public static final String USER_INFO = HOST + "/updataPersonal";//司机信息
        public static final String ALL_ORDER = HOST + "/order/driverOldOrder";//所有订单
        public static final String PASSWORD_LOGIN = HOST + "/loginByPW";//密码登录
        public static final String CHANGE_PASSWORD = HOST + "/driverUpdatePW";//改变密码
        public static final String AUDITINGDRIVER = HOST + "/image/auditingDriver";//上传司机审核信息
        public static final String REGISTERDRIVER = HOST + "/registerDriver";//上传司机注册
        public static final String DRIVERZHENG = HOST + "/image/drivingImage";//上传驾驶证正面
        public static final String DRIVERFAN = HOST + "/image/drivingBackImage";//上传驾驶证反面
        public static final String CARDIDZHENG = HOST + "/image/idCardImage";//上传身份证反面
        public static final String CARDIDFAN = HOST + "/image/idCardBackImage";//上传身份证反面
        public static final String DRIVERINFO = HOST + "/image/uploadDrivingMes";//上传驾驶证信息
        public static final String FINDORDER = HOST + "/order/driverOldOrderByDate";//查找订单
        public static final String DRIVERARRIVAL = HOST + "/order/driverArrival";//司机到达起点
        public static final String IS_PASSWORD = HOST + "/notecase/isPassword";//查看是否有设钱包密码
        public static final String START_NOTECASE = HOST + "/notecase/startNotecase";//设密码，添加银行卡
        public static final String GET_NOTECASE_BY_DRIVER_ID = HOST + "/notecase/getNotecaseByDriverId";//钱包信息
        public static final String ADD_DRAW_MONEY = HOST + "/drawMoney/addDrawMoney";//钱包信息
        public static final String CHANGE_NOTECASE_PASSWORD = HOST + "/notecase/changeNotecasePassword";//钱包改密码
        public static final String APP_DRIVER_GET_MESSAGE = HOST + "/message/appDriverGetMessage";//司机查最近8八消息
        public static final String DRIVER_NOTECASE_RECORD = HOST + "/driverNotecaseRecord";// 钱包记录
        public static final String FIND_OLD_NOTECASE_RECORD_BY_DAY = HOST + "/findOldNotecaseRecordByDay";// 查看指定钱包记录
        public static final String SEND_COORDINATE = HOST + "/order/sendCoordinate";//上传司机坐标
        public static final String GET_CITY_FEE = HOST + "/getCityFee";//费用


        public static final String CARD_INFO = "http://apis.baidu.com/datatiny/cardinfo/cardinfo";//银行卡信息

        public static final String GET_PINGJIA = "http://192.168.16.130:8080/aiton-designated-passenager-app-webapp/designated/app/customer/appraise/loadAppraise";//下载评价

        public static final String CHARGES_NOTES = "http://q.eqxiu.com/s/16f5zj5p";

        //购票须知
        public static final String CLAUSE = "http://bmcx.oss-cn-shanghai.aliyuncs.com/html/goupiaoxuzhi.html";
    }

    public static class PERMISSION {
        public static final int ACCESS_COARSE_LOCATION = 0;
        public static final int ACCESS_FINE_LOCATION = 1;
        public static final int WRITE_EXTERNAL_STORAGE = 2;
        public static final int READ_EXTERNAL_STORAGE = 3;
        public static final int READ_PHONE_STATE = 4;
        public static final int PERMISSION_READ_SMS = 5;
        public static final int RECEIVE_BOOT_COMPLETED = 6;
        public static final int RECEIVE_WRITE_SETTINGS = 7;
        public static final int RECEIVE_VIBRATE = 8;
        public static final int RECEIVE_DISABLE_KEYGUARD = 9;
        public static final int CALL_PHONE = 10;
        public static final int SYSTEM_ALERT_WINDOW = 11;
        public static final int PERMISSION_WRITE_EXTERNAL_STORAGE_SSENGJI = 12;
        public static final int CAMERA = 13;
        public static final int MOUNT_UNMOUNT_FILESYSTEMS = 14;
        public static final int READ_CONTACTS = 15;

    }

    public static class INTENT_KEY {
        public static final String SEND_ORDER_VALUE = "sendOrderValue";
        public static final String ORDER_ING = "orderIng";
        public static final String ENDLATLNG = "endLatLng";
        public static final String CANCELORDER = "cancelOrder";
        public static final String COMFIRM_COST = "comfirmCost";
        public static final String PAY_SUCCESS = "paysuccess";
        public static final String CITY = "city";
        public static final String ORDER_ID = "orderid";
        public static final String CHANGE_NAME = "changeName";
        public static final String USER_NAME = "user_name";
        public static final String USER_AVATAR = "user_avatar";
        public static final String USER_ID = "userId";
        public static final String UNFINISHED_ORDER = " unfinishedOrder";
        public static final String ORDER_DETAIL = "orderDetail";
        public static final String SETTING = "setting";
        public static final String CHANGE_PASSWORD = "changePassword";
        public static final String USER_PHONE = "user_phone";
        public static final String USER_CARD_ID = "user_card_id";
        public static final String USER_DRIVING_ID = "user_driving_id";
        public static final String USER_DRIVING_TIME = "user_driving_time";
        public static final String USER_EMERGENCY = "user_emergency";
        public static final String TITLE = "title";
        public static final String URL = "url";
        public static final String THE_CONTACTS = "the_contacts";
        public static final String EMERGENCY = "emergency";
        public static final String ADD_INFO_TYPE  = "addInfoType";
        public static final String SEX  = "sex";
        public static final String USER_DRIVING_CITY  = "user_driving_city";
        public static final String USER  = "user";
        public static final String AUTO_CANCLE_ORDER= "auto_cancle_order";
        public static final String ALLORDER = "allorder";
        public static final String APPOINTEDORDER = "appointedorder";
        public static final String TYPE = "type";
        public static final String WALLET = "wallet";
    }

    public static class REQUEST_RESULT_CODE {
        public static final int CHANGE_END = 1;
        public static final int CHANGE_NAEM = 2;
        public static final int QIAM_MING = 3;
        public static final int USER_INFO = 4;
        public static final int USER_ID = 5;
        public static final int APPLY = 6;
        public static final int CHOSSE_CONTACTS = 7;
        public static final int PICK_CONTACT = 8;
        public static final int EMERGENCY = 9;
    }



    public static class SP {
        public static final String SP_NAME = "spName";
        public static final String PHONE_NUM = "phoneNum";
        public static final String ID = "id";
        public static final String DEVICEID = "deviceId";
        public static final String IMAGE = "image";
        public static final String SP_ISFRIST = "isfrist";//是否第一次进入APP
        public static final String CONTACTS = "contacts";//存储常用联系电话

    }

    public static class ACACHE {
        public static final String USER = "user";


    }

    public static class BROADCASTCODE {
        public static final String SEND_ORDER = "sendOrder";
        public static final String SEND_ORDER_SERVER = "sendOrderServer";
        public static final String CANCEL_ORDER = "cancelOrder";
        public static final String PAY_SUCCESS = "paysuccess";
        public static final String PAY_RECEIVER = "pay_receiver";
        public static final String USER = "user";
        public static final String STOP_GET_ORDER = "stopGetOrder";
        public static final String WALLET = "wallet";
    }

    public static class TYPE {
        public static final String CAR_ID = "carId";
        public static final String CHANGE_NAME = "changeName";
        public static final String EMERGENCY = "emergency";
        public static final String SEX = "sex";
        public static final String ALLORDER = "allorder";
        public static final String APPOINTEDORDER = "appointedorder";
        public static final String LOGIN = "login";
        public static final String WALLET = "wallet";

    }
    public static class auditingstatus{
        public static final String SEX = "sex";

    }
    public static class ORDER_STATUS{
        public static final int  ORDER_COMPLETE = 0;
        public static final int  WAIT_DRIVER_RECEIVE = 1;
        public static final int  ORDER_RECEIVE = 2;
        public static final int  SERVING = 3;
        public static final int  SERVER_COMPLETE = 4;
        public static final int  SETTLEMENT  = 5;
        public static final int  CANCEL = 6;
        public static final int  NO_EVALUATION = 7;
        public static final int  WAIT_CUSTOMER = 8;

    }
}
